package com.meitianhui.convenitenbuy.module.store.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.meitianhui.convenitenbuy.R;
import com.meitianhui.convenitenbuy.module.store.model.StoreType;

import java.util.List;

/**
 * Created by Administrator on 2017/11/23.
 */

public class StoreServiceAdapter extends BaseQuickAdapter<StoreType,BaseViewHolder>{
    public StoreServiceAdapter(@Nullable List<StoreType> data) {
        super(R.layout.item_store_service, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, StoreType item) {

        helper.setBackgroundRes(R.id.iv_service,item.getResId());
        helper.setText(R.id.tv_service,item.getName());

    }
}
